package org.glut.cloud.serviceRating.service;

import org.glut.cloud.serviceRating.dto.MaintenanceRecords;
import org.glut.cloud.serviceRating.dto.ServiceEvaluationDTO;
import org.glut.cloud.serviceRating.entity.ServiceEvaluation;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *  服务类接口
 *
 * @author qjc
 * @since 2024-08-13 16:33
 */
public interface IServiceEvaluationService extends IService<ServiceEvaluation> {

    List<ServiceEvaluationDTO> getEvaluationsWithUserName();

    /**wsy
     * 添加评价
     * */
    boolean addEvaluation(ServiceEvaluation serviceEvaluation);

    /**wsy
     * 查看评价
     * */
    ServiceEvaluation selectById(Integer maintenanceRecordsId);

    /**wsy
     * 查询维修记录 远程
     * */
    List<MaintenanceRecords> selectRecords(Integer userNo, String evaStatus);

}
